<template>
  <div class="box">
    !home
    <ul>
      <li><router-link to="/one">去野猪佩奇家</router-link></li>
      <li><router-link to="/two">去野猪乔治家</router-link></li>
      <li><router-link to="/three">去大狗熊家</router-link></li>
    </ul>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  name: 'HomeCom',
  data () {
    return {

    }
  },
  created () {
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
* {
  margin: 0;
  padding: 0;
}
.box {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  ul {
    height: 200px;
    display: flex;
    list-style: none;
    li {
      flex: 1;
      a {
        display: block;
        width: 100%;
        height: 100%;
        background-color: skyblue;
        text-align: center;
        line-height: 200px;
        color: red;
        font-size: 50px;
        text-decoration: none;
      }
    }
  }
  div {
    flex: 1;
  }
}
.box ul li .router-link-active {
  background-color: hotpink;
}
</style>
